(()=> {
	
	
	let oldTb = new Tabbar({
		tabId: 'tab-old',
		titleClass: 'old-title',
		contentClass: 'old-item',
		activeClass: 'active',
		callBack: (res) => {
			// console.table(res);
		}
	});
	
	let zhongTb = new Tabbar({
		tabId: 'tab-zhong',
		titleClass: 'zhong-title',
		contentClass: 'zhong-item',
		activeClass: 'active',
		callBack: (res) => {
			// console.table(res);
		}
	});
	
	let gaoTb = new Tabbar({
		tabId: 'tab-gao',
		titleClass: 'gao-title',
		contentClass: 'gao-item',
		activeClass: 'active',
		callBack: (res) => {
			// console.table(res);
		}
	});
	
	let ele = {};

	ele.record = $('.record');
	ele.modal_record = $('#modal-record');
	ele.close_record = $('#close-record');
	ele.modal_cut = $('#modal-cut');
	ele.close_cut = $('#close-cut');
	ele.sell = $('.sell');
	
	
	//打开 领取记录
	for(let i = 0; i < ele.record.length; i ++) {
		ele.record[i].onclick = () => {
			openMdl(ele.modal_record);
		}
	}
	
	//关闭 领取记录
	ele.close_record.onclick = () => {
		closeMdl(ele.modal_record);
	}
	
	//关闭 切割
	ele.close_cut.onclick = () => {
		closeMdl(ele.modal_cut);
	}
	
	//跳转到出售页面
	for(let i = 0; i < ele.sell.length; i ++) {
		ele.sell[i].onclick = () => {
			location.href = '../page/stoneSell.html'
		}
	}
	
	

})()